local prefix = "packages.wdtx.pkg."

local gamemodes = Package:new("wdtx__gamemodes", Package.SpecialPack)
gamemodes:loadSkillSkelsByPath("./packages/wdtx/pkg/gamemodes/rule_skills")
gamemodes:addGameMode(require "packages/wdtx/pkg/gamemodes/WDTX_mode")
gamemodes:addGameMode(require "packages/wdtx/pkg/gamemodes/wujinshilian_mode")

local token = require(prefix .. "WDTX_token")
local cards = require(prefix .. "WDTX_cards")
--[[
-------------------修改全局---------------------------
-------------------修改全局---------------------------
Fk.skills["#vine_skill"].triggerable = function(self, event, target, player, data)
  if event == fk.DamageInflicted then
    return target == player and player:hasSkill(self) and
      data.damageType == fk.FireDamage
  end
  local effect = data ---@type CardEffectEvent
  return player.id == effect.to and player:hasSkill(self) and
    ((effect.card.name == "slash" or effect.card.name == "wdtx__slash") or effect.card.trueName == "savage_assault" or
    effect.card.trueName == "archery_attack")
end

Fk.skills["ex__leiji"].triggerable = function(self, event, target, player, data)
  return player:hasSkill(self) and target == player and data.card.trueName == "jink" and #player.room.alive_players > 1
end
-------------------修改全局---------------------------
-------------------修改全局---------------------------
--]]
Fk:loadTranslationTable {
  ["wdtx"] = "问鼎天下",
  ["wd"] = "问鼎",
}


return {
  gamemodes,
  cards,
  token,
}
